package com.example.mooctao;

public class News {
    private int id;
    private String title;
    private String content;
    private String imageUrl;
    private String createdAt;

    public News(int id, String title, String content, String imageUrl, String createdAt) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.imageUrl = imageUrl;
        this.createdAt = createdAt;
    }

    public int getId() { return id; }
    public String getTitle() { return title; }
    public String getContent() { return content; }
    public String getImageUrl() { return imageUrl; }
    public String getCreatedAt() { return createdAt; }
}
